package ui;



import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.LoginForm;
import com.vaadin.ui.LoginForm.LoginEvent;
import com.vaadin.ui.LoginForm.LoginListener;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.BaseTheme;

import db.Databasehelper;
import domain.Logindomain;

@SuppressWarnings("serial")
public class Loginformui extends VerticalLayout{
	
	LoginForm loginForm = new LoginForm();
	VerticalLayout layout = new VerticalLayout();
	Logindomain loginDomain = new Logindomain();
	
	public Loginformui()
	{
		initlogin();
	}
	
	public void initlogin()
	{
		final Label kullanicilabel = new Label();
		Button cikisbtn = new Button("cikis");
		cikisbtn.setStyleName(BaseTheme.BUTTON_LINK);
		layout.addComponent(kullanicilabel);
		layout.addComponent(cikisbtn);
		
		final Databasehelper dbhelper = new Databasehelper();
		
		addComponent(loginForm);
		
		loginForm.addListener(new LoginListener() {

			public void onLogin(LoginEvent event) {
				
				
			}
			
		});
	}
	

}
